WooCommerce\PayPalCommerce\ApiClient\Helper\PurchaseUnitSanitizer S

Total Complexity 40
Dependencies 3
Dependents 3
Total lines 343
Lines of code 161
Logical lines of code 89
Comment lines 120
Methods 16
Properties 6

Methods 16

Method Rating Maintainability Complexity Lines of code
sanitize_item_amount_mismatch()
A
48 8 32
sanitize_item_tax_mismatch()
S
60 6 13
sanitize_breakdown_mismatch()
S
58 5 15
calculate_tax_mismatch()
S
53 4 24
calculate_breakdown_mismatch()
S
57 2 17
__construct()
S
64 3 10
calculate_item_mismatch()
S
59 2 14
breakdown_value()
S
70 2 6
amount()
S
79 1 3
currency_code()
S
78 1 3
breakdown()
S
79 1 3
items()
S
79 1 3
sanitize()
S
66 1 9
has_ditched_items_breakdown()
S
82 1 3
get_last_message()
S
82 1 3
set_last_message()
S
81 1 3